package com.eascs.ticket.schedule.form;

import javax.persistence.Id;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

import org.hibernate.validator.constraints.NotBlank;

/**
 * The persistent class for the schedule_ticket database table.
 * 
 */
public class SaveScheduleTicketForm {

	@Id
	private String id;

	@NotBlank
	private String comments;
	@NotBlank
	private String description;

	@NotBlank
	@Pattern(regexp = "^task|worklog|joblog$", message = "该工单类型不支持")
	private String ticketType;
	@NotBlank
	private String title;
	@NotBlank(message = "自动创建周期不能为空")
	private String weekday;
	@NotBlank
	private String status;
	@NotNull
	private Integer days;

	private String moduleId;

	public Integer getDays() {
		return days;
	}

	public void setDays(Integer days) {
		this.days = days;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public SaveScheduleTicketForm() {
	}

	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getComments() {
		return this.comments;
	}

	public void setComments(String comments) {
		this.comments = comments;
	}

	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getTicketType() {
		return this.ticketType;
	}

	public void setTicketType(String ticketType) {
		this.ticketType = ticketType;
	}

	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getWeekday() {
		return this.weekday;
	}

	public void setWeekday(String weekday) {
		this.weekday = weekday;
	}

	public String getModuleId() {
		return moduleId;
	}

	public void setModuleId(String moduleId) {
		this.moduleId = moduleId;
	}

}